﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BestPrice.Common
{
    public class Category : BaseEntity
    {
        private int _ID;
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }

        private String _Name;
        public String Name
        {
            get { return _Name; }
            set { _Name = value; }
        }

        private String _Description;
        public String Description
        {
            get { return _Description; }
            set { _Description = value; }
        }

        private int _Ordinal;
        public int Ordinal
        {
            get { return _Ordinal; }
            set { _Ordinal = value; }
        }

        private String _Status;
        public String Status
        {
            get { return _Status; }
            set { _Status = value; }
        }
        
        private List<WebSite> _WebSites;
        public List<WebSite> WebSites
        {
            get
            {
                if (_WebSites == null)
                    _WebSites = new List<WebSite>();
                return _WebSites;
            }
            set
            {
                _WebSites = value;
            }
        }
    }
}
